import { SpecializationI } from "@/models/specialization";
import { DateString } from "@/models/common";

export type UserI = {
  id: number;
  main_specialization: Partial<SpecializationI>;
  additional_specializations: Partial<SpecializationI>[];
  employment_fraction: string;
  password: string;
  username: string;

  first_name: string;
  second_name: string;
  last_name: string;
  phone: string;
  position: string;
  image: string;

  first_login: boolean;
  date_joined: DateString;
  user_modify: string;
  user_create: string;
  create_date: DateString;
  update_date: DateString;

  is_superuser: boolean;
  is_staff: boolean;
  is_active: boolean;

  groups: number[];
  user_permissions: number[];
};

export type TokenI = {
  access: string;
  refresh: string;
};
